/**
 * @file holding/Home.js
 *
 * @author  wangjunjun
 */

import React, { PropTypes, PureComponent } from 'react';
import { Table } from 'antd';

export default class MixedEaringTable extends PureComponent {
  render() {
    const { tableData } = this.props;
    const columns = [
      {
			  title: '项目',
			  dataIndex: 'project',
			  key: 'project',
      },
      {
			  title: '累计收益率',
			  dataIndex: 'returnRate',
			  key: 'returnRate',
      },
      {
			  title: '最大累计收益率',
			  dataIndex: 'maxReturnRate',
			  key: 'maxReturnRate',
      },
      {
			  title: '最小累计收益率',
			  dataIndex: 'minReturnRate',
			  key: 'minReturnRate',
      },
      {
			  title: '最大回撤',
			  dataIndex: 'maxDrawdown',
			  key: 'maxDrawdown',
      },
      {
			  title: '波动率',
			  dataIndex: 'volatility',
			  key: 'volatility',
      },
      {
			  title: 'Beta',
			  dataIndex: 'beta',
			  key: 'beta',
      },
      {
			  title: '净值未创新高天数',
			  dataIndex: 'daysUnderLastPeek',
			  key: 'daysUnderLastPeek',
      },
    ];
    return (
      <Table
        rowKey={record => record.project}
        columns={columns}
        dataSource={tableData}
        pagination={false}
        scroll={{ x: 600 }}
      />
    );
  }
}
